package com.study.rocketmq.message;

/**
 * @Description: 消息体
 * @Author: limingxing
 * @Date: 2020/12/11 上午9:52
 * @Version: 1.0.0
 */
public class MQMessage  {

    /**
     * 一级消息：消息topic
     */
    private String topic;
    /**
     * 二级消息：消息topic对应的tags
     */
    private String tags;
    /**
     * 消息内容
     */
    private String content;

    public MQMessage(){

    }
    public MQMessage(String topic, String tags, String content) {
        this.topic = topic;
        this.tags = tags;
        this.content = content;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
